package com.lovo.ssc.mapper;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.lovo.ssc.entity.Customer;
import com.lovo.ssc.entity.Shelves;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.lovo.ssc.entity.SysGoods;
import org.apache.ibatis.annotations.Mapper;

import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author lovo
 * @since 2022-07-07
 */
@Mapper
public interface ShelvesMapper extends BaseMapper<Shelves> {
    public void add(Shelves shelves);

    public List<Shelves> findAllShelves();

//    public void updateGoodsNum(@Param("batch") String batch,@Param("num") int num);

    public void update(@Param("code") String code,@Param("price") float price);

    public List<Shelves> findByCode(@Param("code")String code);

    public void upGoodsStatue(@Param("code") String code,@Param("statue") String statue);

//    public SysGoods findGoodsByBatch(String batch);

    public void delShelves(String code);

    public List<SysGoods> findAll();

    public SysGoods findGoodsByCode(String code);

    public List<SysGoods> findByItem(@Param("name") String name,@Param("state") String state);
}
